package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.util.Date;

/**
 * 设备报警对象 device_alarm
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device_alarm")
public class DeviceAlarm extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 设备ID
     */
    private Long deviceId;

    private String deviceName;
    private Long tunnelId;


    private Long variableId;
    private String variableName;
    private Long deviceGroup;

    /**
     * 报警数值
     */
    private String alarmValue;

    /**
     * 报警内容
     */
    private String content;

    /**
     * 原始报文
     */
    private String originalMessage;

    /**
     * 报警级别
     */
    private Long level;

    /**
     * 解决报警时间
     */
    private Date finishTime;

    /**
     * 报警状态
     */
    private Long status;

    private String transactor;//处理人

    private String remark;

    private int jobStatus;


}
